package com.seehack.sample.springrest;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;

@Configuration
public class RestTemplateConfiguration {

    @Bean("httpClient")
    public RestTemplate getRestTemplateByHttpClient(HttpComponentsClientHttpRequestFactory factory) {
        return new RestTemplate(factory);
    }


}
